<script type="text/javascript">
<!--
	function deltype(id)
	{
	if (confirm('{L_CONFIRM_SUPPRESSION_TYPE} ?'))
	{document.location.href = 'type.php?delete&token={V_TOKEN}&id='+id;}
	}
// -->
</script>
<h3>{L_TYPE}</h3>
<br /><br />
<!-- IF ERROR_MSG -->
<span id="errorh"></span>
<div id="error_msg">
	<div class="{ERRORH_CLASS}" style="width:500px;margin:auto;padding:15px;">
		<img src="{V_URL_SITE}images/{ERRORH_IMG}.png" alt="" style="float:left;padding-right:6px;" /> {V_ERROR_TXT}
	</div>
	<br />
</div>
<script type="text/javascript">
<!--
	//Javascript timeout to hide this message
	setTimeout('Effect.Fade("error_msg");', 3000);
-->
</script>
<br />
<br />
<!-- ENDIF -->
<table style="width:98%; margin:auto;">
    <tr>
        <td class="thead"><strong>#</strong></td>
        <td class="thead"><strong>{L_NOM}</strong></td>
        <td class="thead"><strong>{L_VISIBLE}</strong></td>
        <td class="thead"><strong>{L_ACTION}</td>
    </tr>
    <!-- BEGIN type -->
    <tr>
        <td class="tcontenue">{type.V_ID}</strong></td>
        <td class="tcontenue">{type.V_NOM}</td>
        <td class="tcontenue">{type.V_VISIBLE}</td>
        <td class="tcontenue">{type.V_ACTION}</td>
    </tr>
    <!-- END bloc -->
</table>
<br />
<fieldset>
    <legend>{L_NOUVEAU}</legend>
    <br /><br />
    <form method="post" action="type.php">
        <table>
            <tr>
                <td><label>{L_NOM}</label></td>
                <td><input type="text" name="nom" /></td>
            </tr>
            <tr>
                <td><label>{L_DESCRIPTION}</label></td>
                <td><textarea rows="4" cols="40" name="description"></textarea></td>
            </tr>
            <tr>
                <td><label>{L_VISIBLE}</label></td>
                <td>
                    <select name="visible">
                        <option value="1">{L_OUI}</option>
                        <option value="0">{L_NON}</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td><label>{L_AJOUTER_AU_MENU}</label></td>
                <td><input type="checkbox" name="add_menu" /></td>
            </tr>
            <tr>
                <td colspan="2" style="text-align:center;">
                    <input type="hidden" name="token" value="{V_TOKEN}" />
                    <input type="submit" name="add_type" value="{L_ENREGISTRER}" />
                </td>
            </tr>
        </table>
    </form>
</fieldset>